package com.ruiysoft.mapper.comment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruiysoft.entity.comment.CommentVo;
import com.ruiysoft.entity.comment.MerchandiseComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchandiseCommentMapper extends BaseMapper<MerchandiseComment> {
    int updateBatch(List<MerchandiseComment> list);

    int batchInsert(@Param("list") List<MerchandiseComment> list);

    int insertOrUpdate(MerchandiseComment record);

    int insertOrUpdateSelective(MerchandiseComment record);

    List<CommentVo> queryCommentsBySpuId(@Param("spuId") Integer spuId);
}